// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_aliases
// * CreateDate    : 2014-06-05 18:29:54
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:29:54
// * LastChanger   : 2014-06-05 18:29:54
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmAliasesEntity : EntityBase
    {
        public HmAliasesTable TableSchema
        {
            get
            {
                return HmAliasesTable.Current;
            }
		}
		
		public HmAliasesEntity()
        {

        }
		
		public HmAliasesEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Aliasid = Convert.ToInt32(CommonFunctions.ToObject(dr["aliasid"]));
			this.Aliasdomainid = Convert.ToInt32(CommonFunctions.ToObject(dr["aliasdomainid"]));
			this.Aliasname = Convert.ToString(CommonFunctions.ToObject(dr["aliasname"]));
			this.Aliasvalue = Convert.ToString(CommonFunctions.ToObject(dr["aliasvalue"]));
			this.Aliasactive = Convert.ToByte(CommonFunctions.ToObject(dr["aliasactive"]));
        }
		
		public HmAliasesEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Aliasid = Convert.ToInt32(CommonFunctions.ToObject(dr["aliasid"]));
			this.Aliasdomainid = Convert.ToInt32(CommonFunctions.ToObject(dr["aliasdomainid"]));
			this.Aliasname = Convert.ToString(CommonFunctions.ToObject(dr["aliasname"]));
			this.Aliasvalue = Convert.ToString(CommonFunctions.ToObject(dr["aliasvalue"]));
			this.Aliasactive = Convert.ToByte(CommonFunctions.ToObject(dr["aliasactive"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmAliasesTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public int Aliasid
        {
            get { return Convert.ToInt32(GetData(HmAliasesTable.C_aliasid)); }
            set { SetData(HmAliasesTable.C_aliasid, value); }
        }
		
        [DataMember]
        public int Aliasdomainid
        {
            get { return Convert.ToInt32(GetData(HmAliasesTable.C_aliasdomainid)); }
            set { SetData(HmAliasesTable.C_aliasdomainid, value); }
        }
		
        [DataMember]
        public string Aliasname
        {
            get { return Convert.ToString(GetData(HmAliasesTable.C_aliasname)); }
            set { SetData(HmAliasesTable.C_aliasname, value); }
        }
		
        [DataMember]
        public string Aliasvalue
        {
            get { return Convert.ToString(GetData(HmAliasesTable.C_aliasvalue)); }
            set { SetData(HmAliasesTable.C_aliasvalue, value); }
        }
		
        [DataMember]
        public byte Aliasactive
        {
            get { return Convert.ToByte(GetData(HmAliasesTable.C_aliasactive)); }
            set { SetData(HmAliasesTable.C_aliasactive, value); }
        }
		
		#endregion
	}
	
	
}	

